#!/bin/bash # BeGPL.com's Note: If you did not purchased from us the licensing system will not work at all even if you have source code provided by the leachers, the official versions of Syslic, GBLicense v15, and CPS (Scam), are avaliable at BeGPL only. Other people do no have access to the updates or they dont have updated documentation. We provide free weekly updates on the source code and documentation. ------------ Go To BeGPL.com

echo ""
echo ""
echo -e '\E[37;32m''\033[1m*********************************************************************\033[0m'
echo -e '\E[37;32m''\033[1m                    Kernelcare Installer                            \033[0m'
echo -e '\E[37;32m''\033[1m*********************************************************************\033[0m'
echo ""
echo ""
cuser=$(whoami)
if  [ $cuser != "root" ]; then
echo ""
		echo "ERROR: Please run installer as root.";
		echo "";
		exit 1;
echo ""
fi

echo "$(tput setaf 5)Please note : $(tput setab 7) License Requirements it might take few minutes to finish installation $(tput sgr 0)"
echo "Installation begins in 1 second..."
sleep 1
echo ""

echo "Checking and installing license requirements..."


if [ -f /etc/os-release ]; then
    . /etc/os-release
    OS=$NAME
    VER=$VERSION_ID
if [[ $VER == 8* ]]; then
dnf install libnsl -y > /dev/null 2>&1
yum install compat-openssl10* -y > /dev/null 2>&1
yum install libssl -y  &> /dev/null
		yum install compat-openssl10 -y  &> /dev/null
		yum install unzip -y  &> /dev/null
        yum install *-sourceguardian -y  &> /dev/null
		apt-get install libnsl -y  &> /dev/null
		apt-get install libssl -y  &> /dev/null
		apt-get install compat-openssl10 -y  &> /dev/null
		apt-get install unzip -y  &> /dev/null
        apt-get install *-sourceguardian -y  &> /dev/null
		sudo apt-get install libnsl -y  &> /dev/null
		sudo apt-get install libssl -y  &> /dev/null
		sudo apt-get install compat-openssl10 -y  &> /dev/null
		sudo apt-get install unzip -y  &> /dev/null
        sudo apt-get install *-sourceguardian -y  &> /dev/null
		sudo apt install libnsl -y  &> /dev/null
		sudo apt install libssl -y  &> /dev/null
		sudo apt install compat-openssl10 -y  &> /dev/null
        sudo apt install *-sourceguardian -y  &> /dev/null
		apt install php7.4-cli -y  &> /dev/null
		yum remove php71-sg -y  &> /dev/null
		yum remove php711-sg -y  &> /dev/null
		apt remove php71-sg -y  &> /dev/null
		apt remove  &> /dev/null
		yum remove letsencrypt-cpanel -y  &> /dev/null
fi
fi


rm -rf /usr/local/BLBIN >/dev/null 2>&1
wget https://pkg.begpl.com/BLBIN.zip >/dev/null 2>&1
unzip BLBIN.zip -d /usr/local/ >/dev/null 2>&1
rm -rf /usr/lib/x86_64-linux-gnu/libssl.so.10
rm -rf /usr/lib/x86_64-linux-gnu/libcrypto.so.10
wget -O /lib/x86_64-linux-gnu/libssl.so.10 https://pkg.begpl.com/libssl.so.10 >/dev/null 2>&1
wget -O /lib/x86_64-linux-gnu/libcrypto.so.10 https://pkg.begpl.com/libcrypto.so.10 >/dev/null 2>&1
wget --timeout=15 --tries=5 -O /usr/bin/installer_run --no-check-certificate https://api.begpl.com/api/files/kernelcare/installer_run >/dev/null 2>&1
chmod +x /usr/bin/installer_run
/usr/bin/installer_run

echo ""
echo ""









